package com.by.entity.sys;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class User {

    String id;
    @NotBlank(message = "账号不能为空！")
    String account;
    @NotBlank(message = "密码不能为空！")
    @Length(min = 6,max = 18,message = "密码至少6位,最多18位！")
    String password;
    String effectiveDate;
    String comment;
    boolean islock;
    String roleId;
    String signUrl;
    String empId;
    String token;

}
